import VueRouter from 'vue-router'

// 导入对应的路由组件
import Home from "./components/tabbar/Home.vue"
import Member from "./components/tabbar/Member.vue"
import Shopcar from "./components/tabbar/Shopcar.vue"
import Search from "./components/tabbar/Search.vue"


// 3. 创建路由对象
var router = new VueRouter({
  routes: [ // 配置路由规则
    {path:"/",redirect:"/home"},
    {path:"/home",component:Home},
    {path:"/member",component:Member},
    {path:"/shopcar",component:Shopcar},
    {path:"/search",component:Search},

  ],
  linkActiveClass:"mui-active"

})

// 把路由对象暴露出去
export default router